package com.kgcx.order.entity;

public class OrderChangeMessage {
    /**
     * 订单取消
     */
    public static final Integer MESSAGE_TYPE_CANCLE = 1;

    /**
     * 订单被司机标为司机代支付
     */
    public static final Integer MESSAGE_TYPE_MARKED_PAIED = 2;
    /**
     * 价格算完，通知用户拉取账单
     */
    public static final Integer MESSAGE_TYPE_DRAW_BILLS = 3;
    /**
     * 预约成功
     */
    public static final Integer MESSAGE_TYPE_PLAN_SUCCESS = 4;
    /**
     * 预约失败
     */
    public static final Integer MESSAGE_TYPE_PLAN_FAIL = 5;
    /**
     * 派车成功
     */
    public static final Integer MESSAGE_TYPE_DISPATCH_SUCCESS = 6;
    /**
     * 派车失败
     */
    public static final Integer MESSAGE_TYPE_DISPATCH_FAIL = 7;
    /**
     * 行程开始
     */
    public static final Integer MESSAGE_TYPE_ON_ROAD = 8;
    /**
     * 已评价
     */
    public static final Integer MESSAGE_TYPE_COMMENTED = 12;




    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 订单状态
     */
    private Integer state;

    /**
     * 消息类型
     */
    private Integer type;

    /**
     * 消息内容
     */
    private String message;

    /**
     * 接收人ID，DriverID 或者 UserID
     */
    private Long receiverId;

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Long getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Long receiverId) {
        this.receiverId = receiverId;
    }

    public OrderChangeMessage(String orderNo, Integer state, Integer type, String message, Long receiverId) {
        this.orderNo = orderNo;
        this.state = state;
        this.type = type;
        this.message = message;
        this.receiverId = receiverId;
    }
}
